from flask import Blueprint, redirect, url_for
from app import login_required_with_check_scope

admin = Blueprint('admin', __name__)


@admin.route('/', methods=['GET'])
@login_required_with_check_scope
def index_ep():
    return redirect(url_for('admin.product_list_ep'))


# 导入admin模块下的路由
from . import product
from . import order
from . import user